package com.springsummer.information.green.webmvc;

import org.springframework.lang.Nullable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * View类 render渲染数据
 */
public interface View {

    //渲染数据
    void render(@Nullable Map<String, ?> model, HttpServletRequest request, HttpServletResponse response)
            throws Exception;

    String getContentType();

    void setContentType(String contentType);

    String getPath();

    void setPath(String url);

}
